/*
 * Triprob.h
 *
 *  Created on: Dec 3, 2014
 *      Author: ale
 */
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string>
#include <map>
#include <sparsehash/sparse_hash_map>
using namespace std;

#ifndef PRED_TRIPROB_H_
#define PRED_TRIPROB_H_

class Triprob {
public:
	Triprob();
	virtual ~Triprob();

	void agregarNgrama(string ngrama, float prob);
	float obtenerProbabilidad(string ngrama);
	unsigned long int obtenerCantNGramas() {return cantNGramas;}

private:
	unsigned long int cantNGramas;

	google::sparse_hash_map<std::string, double> tabla;
};

#endif /* PRED_TRIPROB_H_ */
